
package olympicgameslogic;

import java.io.*;

/**
 *
 * @author Fabio
 * 
 */
public class Language implements Serializable{
    
    private String lingua;
    private String[] langMatrix;    
    

    public Language(String lingua) {
        this.lingua=lingua;        
    }
    
    
    
    public String getMsg(int n){
	return langMatrix[n];
    }
    
    public void setLanguage(File file) throws FileNotFoundException, IOException{
	int lin=0;
	BufferedReader bufRdr  = new BufferedReader(new FileReader(file));
	String line = null;	
	while((line = bufRdr.readLine()) != null)
	{		
		langMatrix[lin] = line;
		lin++;
	}	
	bufRdr.close();
	}

    /**
     * @return the lingua
     */
    public String getLingua() {
        return lingua;
    }
    }    

